package com.yanfan.energy.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;


@ApiModel("能源采购")
public class PurchasingEnergy implements Serializable {

    private static final long serialVersionUID = 1L;
    Integer numberOfDay;
    /**
     * 主键
     */
    @ApiModelProperty("主键")
    private Integer id;
    /**
     * 供应商id
     */
    @ApiModelProperty("供应商id")
    private Integer supplierId;
    /**
     * 能源单价
     */
    @ApiModelProperty("能源单价")
    private Double price;
    /**
     * 能源总价
     */
    @ApiModelProperty("能源总价")
    private Double countPrice;
    /**
     * 能耗类型
     */
    @ApiModelProperty("能耗类型")
    private Integer type;
    /**
     * 能耗名称
     */
    @ApiModelProperty("能耗名称")
    private String typeName;
    /**
     * 采购数量
     */
    @ApiModelProperty("采购数量")
    private Integer purchaseNumber;
    /**
     * 能耗单位
     */
    @ApiModelProperty("能耗单位")
    private String unit;
    /**
     * 采购时间
     */
    @ApiModelProperty("采购时间")
    private String purchaseDate;
    /**
     * 负责人
     */
    @ApiModelProperty("负责人")
    private String principal;
    @ApiModelProperty("负责人名称")
    private String principalName;
    /**
     * 联系方式
     */
    @ApiModelProperty("联系方式")
    private String telephone;
    /**
     * 创建人
     */
    @ApiModelProperty("创建人")
    private String createdBy;
    /**
     * 创建人ID
     */
    private Long createdUser;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createdDate;
    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    private Date lastModifiedDate;
    /**
     * 供应商名称
     */
    @ApiModelProperty("供应商名称")
    private String supplierName;
    /**
     * 用户名
     */
    @ApiModelProperty("用户名")
    private String userName;
    /**
     * 状态
     */
    @ApiModelProperty("状态")
    private Integer status;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;
    /**
     * 采购时间转暂存
     */
    @ApiModelProperty("采购时间转暂存")
    private Date purchaseDates;
    @ApiModelProperty("楼栋id")
    private Integer buildingId;
    @ApiModelProperty("楼栋名称")
    private String buildingName;
    @ApiModelProperty("楼层id")
    private Integer floorId;
    @ApiModelProperty("车间id")
    private Integer workshopId;
    @ApiModelProperty("车间id")
    private String workshopName;
    /**
     * 二级部门
     */
    private String ancestor;


    public PurchasingEnergy() {
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getCountPrice() {
        return countPrice;
    }

    public void setCountPrice(Double countPrice) {
        this.countPrice = countPrice;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getPurchaseNumber() {
        return purchaseNumber;
    }

    public void setPurchaseNumber(Integer purchaseNumber) {
        this.purchaseNumber = purchaseNumber;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getPurchaseDate() {
        return purchaseDate;
    }

    public void setPurchaseDate(String purchaseDate) {
        this.purchaseDate = purchaseDate;
    }

    public String getPrincipal() {
        return principal;
    }

    public void setPrincipal(String principal) {
        this.principal = principal;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Long getCreatedUser() {
        return createdUser;
    }

    public void setCreatedUser(Long createdUser) {
        this.createdUser = createdUser;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public Date getLastModifiedDate() {
        return lastModifiedDate;
    }

    public void setLastModifiedDate(Date lastModifiedDate) {
        this.lastModifiedDate = lastModifiedDate;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getPurchaseDates() {
        return purchaseDates;
    }

    public void setPurchaseDates(Date purchaseDates) {
        this.purchaseDates = purchaseDates;
    }

    public Integer getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(Integer buildingId) {
        this.buildingId = buildingId;
    }

    public Integer getFloorId() {
        return floorId;
    }

    public void setFloorId(Integer floorId) {
        this.floorId = floorId;
    }

    public Integer getWorkshopId() {
        return workshopId;
    }

    public void setWorkshopId(Integer workshopId) {
        this.workshopId = workshopId;
    }

    @Override
    public String toString() {
        return "PurchasingEnergy{" + "id=" + id + ", supplierId=" + supplierId + ", price=" + price + ", countPrice=" + countPrice + ", type=" + type + ", typeName='" + typeName + '\'' + ", purchaseNumber=" + purchaseNumber + ", unit='" + unit + '\'' + ", purchaseDate='" + purchaseDate + '\'' + ", principal='" + principal + '\'' + ", telephone='" + telephone + '\'' + ", createdBy='" + createdBy + '\'' + ", createdDate=" + createdDate + ", lastModifiedDate=" + lastModifiedDate + ", supplierName='" + supplierName + '\'' + ", userName='" + userName + '\'' + ", status=" + status + ", createTime=" + createTime + ", purchaseDates=" + purchaseDates + '}';
    }

    public String getAncestor() {
        return ancestor;
    }

    public void setAncestor(String ancestor) {
        this.ancestor = ancestor;
    }

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    public String getWorkshopName() {
        return workshopName;
    }

    public void setWorkshopName(String workshopName) {
        this.workshopName = workshopName;
    }

    public String getPrincipalName() {
        return principalName;
    }

    public void setPrincipalName(String principalName) {
        this.principalName = principalName;
    }

    public Integer getNumberOfDay() {
        return numberOfDay;
    }

    public void setNumberOfDay(Integer numberOfDay) {
        this.numberOfDay = numberOfDay;
    }
}
